package com.renren.youyou.activity;

import android.content.Intent;
import android.os.StrictMode;
import android.util.Config;
import android.util.Log;

import com.renren.youyou.views.BaseFragment;
import com.renren.youyou.views.BaseFragmentActivity;
import com.renren.youyou.views.HomeFragment;

public class MainActivity  extends BaseFragmentActivity<Integer> {
    private static final String TAG = "HomeActivity";
    private HomeFragment mHomeFragment;

    @Override
    protected BaseFragment onCreateContentFragment() {
        mHomeFragment = new HomeFragment();
        return mHomeFragment;
    }

    @Override
    protected void onPreLoad() {
    }

    @Override
    protected void onFinishLoad(Integer integer) {
    }

    @Override
    protected Integer onLoadInBackground() {
        return null;
    }

    @Override
    protected void onDestroyData() {
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        Log.d(TAG, "@onActivityResult");
        mHomeFragment.onActivityResult(requestCode, resultCode, data);
    }
}